/**
 * elancom Corporation copy right 2012 - 2015  
 *   
 * $Header$
 * $Id$
 * $Author$
 * $Date$
 * $Revision$
 */
package com.elancom.framework.test;

import org.springframework.beans.factory.config.AbstractFactoryBean;

/**
 * @author elancom
 * @date 2012-7-18
 */
public class StringArrayFactoryBean extends AbstractFactoryBean<String[]> {
	private String[] elements;

	/**
	 * @return the elements
	 */
	public String[] getElements() {
		return elements;
	}

	/**
	 * @param elements
	 *            the elements to set
	 */
	public void setElements(String[] elements) {
		this.elements = elements;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.springframework.beans.factory.config.AbstractFactoryBean#getObjectType()
	 */
	@Override
	public Class<?> getObjectType() {
		return String.class;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.springframework.beans.factory.config.AbstractFactoryBean#createInstance()
	 */
	@Override
	protected String[] createInstance() throws Exception {
		return elements;
	}

}
